package cn.bugstack.springframework;

import java.util.HashMap;

public class BeanFactoryCopy {


    HashMap<String,BeanDefinitionCopy> beans = new HashMap();


    public void registerBean(String name , BeanDefinitionCopy beanDefinitionCopy){
        beans.put(name , beanDefinitionCopy);
    }



    public Object getBean(String name){
      return    beans.get(name).getBean();
    }


}
